import {request} from '@/plugins/axios'


// 登录接口
export function login(data) {
    return request({
        url: '/user/login',
        method: 'post',
        data: data
    });
}

export function getAppInfoPage(data,pageNum) {
    return request({
        url: '/appInfo/page?pageNum='+pageNum,
        method: 'post',
        data: data
    })
}

export function getCategoryTree() {
    return request({
        url: '/appCategory/tree',
        method: 'get',

    })
}

export function validateApkName(apkname,id) {
    return request({
        url: '/appInfo/validateApkName?apkname='+apkname+'&id'+id,
        method: 'get',

    })
}

export function saveOrupdateApp(data) {
    return request({
        url: '/appInfo/add',
        method: 'post',
        data:data

    })
}